n, m = map(int, input().split())
a = [[0] for i in range(n)]
a.insert(0, [0] * (m +1))
for i in range(1, n + 1):
    a[i].extend(map(int, input().split()))
